﻿<%@ Page Language="C#" MasterPageFile="~/Admin/MasterPage.master" AutoEventWireup="true"
    CodeFile="ViewLoginInformation.aspx.cs" Inherits="Admin_user_ViewLoginInformation"
    Title="View Log In Information" %>

<asp:Content ID="Content1" ContentPlaceHolderID="ContentPlaceHolder1" runat="Server">
<div class="contentsfull">
    <table width="100%" cellpadding="3" cellspacing="0" border="0">
        <tr>
            <td>
                <asp:DetailsView ID="dtvUserInfo" runat="server" AutoGenerateRows="False" CellPadding="3"
                    DataKeyNames="CEID" DataSourceID="sqlDbLoginInfo" ForeColor="#333333" GridLines="None"
                    Width="100%" CellSpacing="1" BorderStyle="Solid" BorderColor="#eff7fa" BorderWidth="1px"
                    EmptyDataText="No login information was captured.">
                    <FooterStyle BackColor="#5D7B9D" Font-Bold="True" ForeColor="White" />
                    <CommandRowStyle BackColor="#E2DED6" Font-Bold="True" />
                    <RowStyle BackColor="#fbfeff" ForeColor="#333333" />
                    <FieldHeaderStyle BackColor="#eff7fa" Font-Bold="True" Width="200px" />
                    <PagerStyle BackColor="#284775" ForeColor="White" HorizontalAlign="Center" />
                    <Fields>
                        <asp:TemplateField HeaderText="User Details" HeaderStyle-Font-Bold="true"
                            HeaderStyle-Font-Size="Larger">
                            <HeaderStyle Font-Bold="True" Font-Size="Larger"></HeaderStyle>
                        </asp:TemplateField>
                        <asp:BoundField DataField="CEID" HeaderText="CEID" InsertVisible="False" ReadOnly="True"
                            SortExpression="CEID" />
                        <asp:BoundField DataField="UserId" HeaderText="UserId" SortExpression="UserId" />
                        <asp:BoundField DataField="Email" HeaderText="Email" SortExpression="Email" />
                        <asp:BoundField DataField="AuthCode" HeaderText="AuthCode" SortExpression="AuthCode" />
                        <asp:BoundField DataField="UsrTypeId" HeaderText="UsrTypeId" SortExpression="UsrTypeId" />
                        <asp:CheckBoxField DataField="IsAcceptTC" HeaderText="IsAcceptTC" SortExpression="IsAcceptTC" />
                        <asp:CheckBoxField DataField="Status" HeaderText="Status" SortExpression="Status" />
                        <asp:BoundField DataField="ModifiedDate" HeaderText="ModifiedDate" SortExpression="ModifiedDate" />
                        <asp:BoundField DataField="Salutation" HeaderText="Salutation" SortExpression="Salutation" />
                        <asp:BoundField DataField="FirstName" HeaderText="FirstName" SortExpression="FirstName" />
                        <asp:BoundField DataField="SurName" HeaderText="SurName" SortExpression="SurName" />
                        <asp:BoundField DataField="DOB" HeaderText="DOB" SortExpression="DOB" />
                        <asp:BoundField DataField="Gender" HeaderText="Gender" SortExpression="Gender" />
                        <asp:BoundField DataField="MaritalStatus" HeaderText="MaritalStatus" SortExpression="MaritalStatus" />
                        <asp:BoundField DataField="OccupationType" HeaderText="OccupationType" SortExpression="OccupationType" />
                        <asp:BoundField DataField="Occupation" HeaderText="Occupation" SortExpression="Occupation" />
                        <asp:BoundField DataField="IDNOType" HeaderText="IDNOType" SortExpression="IDNOType" />
                        <asp:BoundField DataField="IDNO" HeaderText="IDNO" SortExpression="IDNO" />
                        <asp:BoundField DataField="Nationality" HeaderText="Nationality" SortExpression="Nationality" />
                        <asp:BoundField DataField="JobNature" HeaderText="JobNature" SortExpression="JobNature" />
                        <asp:BoundField DataField="YearDriveSg" HeaderText="YearDriveSg" SortExpression="YearDriveSg" />
                        <asp:TemplateField HeaderText="" HeaderStyle-Font-Bold="true"
                            HeaderStyle-Font-Size="Larger">
                            <HeaderStyle Font-Bold="True" Font-Size="Larger"></HeaderStyle>
                        </asp:TemplateField>
                        <asp:TemplateField HeaderText="Browser Details"  HeaderStyle-Font-Bold="true"
                            HeaderStyle-Font-Size="Larger">
                            <HeaderStyle Font-Bold="True" Font-Size="Larger"></HeaderStyle>
                        </asp:TemplateField>
                        <asp:BoundField DataField="Browser" HeaderText="Browser" SortExpression="Browser" />
                        <asp:BoundField DataField="BrowserType" HeaderText="BrowserType" SortExpression="BrowserType" />
                        <asp:BoundField DataField="BrowserVersion" HeaderText="BrowserVersion" SortExpression="BrowserVersion" />
                        <asp:CheckBoxField DataField="JavaScript" HeaderText="JavaScript" SortExpression="JavaScript" />
                        <asp:CheckBoxField DataField="Cookies" HeaderText="Cookies" SortExpression="Cookies" />
                        <asp:BoundField DataField="Platform" HeaderText="Platform" SortExpression="Platform" />
                        <asp:BoundField DataField="UserAgent" HeaderText="UserAgent" SortExpression="UserAgent" />
                        <asp:BoundField DataField="IpAddress" HeaderText="IpAddress" 
                            SortExpression="IpAddress" />
                        <asp:BoundField DataField="HostName" HeaderText="HostName" 
                            SortExpression="HostName" />
                    </Fields>
                    <HeaderStyle BackColor="#5D7B9D" Font-Bold="True" ForeColor="White" />
                    <EditRowStyle BackColor="#999999" />
                    <AlternatingRowStyle BackColor="White" ForeColor="#284775" />
                </asp:DetailsView>
                <asp:SqlDataSource ID="sqlDbLoginInfo" runat="server" ConnectionString="<%$ ConnectionStrings:CX_DBConnectionString %>"
                    SelectCommand="sprocUserLoginInformationSelectItemList" SelectCommandType="StoredProcedure">
                    <SelectParameters>
                        <asp:QueryStringParameter DefaultValue="" Name="CEID" QueryStringField="CEID" Type="Int64" />
                        <asp:QueryStringParameter DefaultValue="" Name="LogHisId" QueryStringField="loghisid"
                            Type="Int64" />
                    </SelectParameters>
                </asp:SqlDataSource>
            </td>
        </tr>
    </table>
</div>
</asp:Content>
